package com.ruoyi.web.controller.devops;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.devops.domain.LargeScreenComprehensive;
import com.ruoyi.devops.service.impl.LangeScreenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

import static com.ruoyi.common.core.domain.AjaxResult.success;

@RestController
@RequestMapping("/comprehensive")
public class LargeScreenController {

    @Autowired
    LangeScreenService langeScreenService;

    @GetMapping("/queryData")
    public AjaxResult queryData(){
       List<LargeScreenComprehensive> list= langeScreenService.queryData();

        return success(list);
    }


    @GetMapping("/queryDataOne")
    public AjaxResult queryDataOne(){
        List<LargeScreenComprehensive> list= langeScreenService.queryDataOne();

        return success(list);
    }

    @GetMapping("/queryAll")
    public AjaxResult queryAll(){
        List<LargeScreenComprehensive> list= langeScreenService.queryAll();

        return success(list);
    }

    @GetMapping("/queryAlls")
    public AjaxResult queryAlls(){
        List<LargeScreenComprehensive> list= langeScreenService.queryAlls();

        return success(list);
    }

    @PostMapping("/updateData")
    public AjaxResult updateData(@RequestBody List<String> data){
        List<LargeScreenComprehensive> arr=langeScreenService.updateData(data);

        return success(arr);
    }

    @PostMapping("/updateData1")
    public AjaxResult updateData1(@RequestBody List<String> data){
        List<LargeScreenComprehensive> arr=langeScreenService.updateData1(data);

        return success(arr);
    }
}
